package com.yehangtech.designpattern.结构型_享元模式;

import com.yehangtech.designpattern.结构型_享元模式.controller.ActivityController;
import com.yehangtech.designpattern.结构型_享元模式.entity.Activity;

public class Main {
    public static void main(String[] args) throws InterruptedException {
        ActivityController activityController=new ActivityController();
        Activity activityById = activityController.getActivityById(147L);
        System.out.println(activityById);
        Thread.sleep(2000L);
        activityById = activityController.getActivityById(968L);
        System.out.println(activityById);
    }
}
